package com.startupwebapp.core.domain.users;

import javax.persistence.Entity;

/**
 * Role entity. @author MyEclipse Persistence Tools
 */
@Entity
public enum PersonRole {
	USER, ADMIN;

	public static String prefix = "ROLE_";

	@Override
	public String toString() {
		return getPrefixedRoleName();
	}

	public String getPrefixedRoleName() {
		return prefix + getOriginalRoleName();
	}

	public String getOriginalRoleName() {
		return name();
	}

	public static void main(String[] args) {
		System.out.println(USER);
	}
}